import {developUrl,serverDK} from "@/views/api/api"
import axios from "axios"
// 请求处理服务统计的api
export const apiServiceStatisticalController = (urlParam,param) => {
    return axios(
        {
            method: "post",
            headers: {
                "Content-Type": "application/json"
            },
             url: developUrl+serverDK+urlParam,
            // 伪数据生成接口
            //url:'https://www.easy-mock.com/mock/5c492967ddefb12c96a025f2/getShareRequestStatisticsDetail',
            data: param,
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}
// 总量统计数据后台入口
export const collectServiceStatisticsTotal = (urlParam) => {
    return axios(
        {
            method: "get",
            headers: {
                "Content-Type": "application/json"
            },
             url: developUrl+serverDK+urlParam,
            // 伪数据生成接口
            //url:'https://www.easy-mock.com/mock/5c492967ddefb12c96a025f2/CollectServiceStatisticsTotal',
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}

// 总量统计数据后台入口
export const dataForEcharts = (urlParam) => {
    return axios(
        {
            method: "post",
            headers: {
                "Content-Type": "application/json"
            },
             url: developUrl+serverDK+urlParam,
            // 伪数据生成接口
           // url:'https://www.easy-mock.com/mock/5c492967ddefb12c96a025f2/testEcharts',
            data: {"top":10},
        }
    ).then(
        (res) => res
    ).catch(
        (error) => {
            console.log('出错:'+error)
        }
    );
}

